package com.hongyu.manager.media.manager.service;

import com.hongyu.manager.media.manager.model.http.MediaRequest;
import com.hongyu.manager.media.manager.model.result.Result;
import com.hongyu.manager.media.manager.model.result.ResultBuilder;
import org.slf4j.Logger;

public interface MediaRequestService {

    Result returnError(int paramError, String msg, String requestId, int i, Logger log);

    Result returnSuccess(String msg);
    Result returnSuccess(ResultBuilder resultBuilder, String msg, int code);
    Result returnSuccess(ResultBuilder resultBuilder, String msg);

    Result returnError(int paramError, String s, int i, Logger log);

    void save(MediaRequest mediaRequest);

    MediaRequest update(MediaRequest mediaRequest);

    MediaRequest find(String requestId);
}
